package view;

import javax.swing.JInternalFrame;

import controller.Controller;

public class CraftingFrame extends JInternalFrame {
	private static final long serialVersionUID = 7344799269298266481L;
	private CraftPanel panel;
	private Stage parent;
	private Controller controller;

	public CraftingFrame(Stage parent, Controller controller){
		super();
		this.parent = parent;
		this.controller = controller;
		init();
	}
	
	private void init(){
		panel = new CraftPanel(parent, controller);
		add(panel);
	}
	
	public void update(){
		panel.update();
	}
}
